package com.example.csdn.service;

import com.example.csdn.DTO.ArticleAddDTO;
import com.example.csdn.pojo.Article;
import com.example.csdn.pojo.PageBean;

public interface ArticleService {
    //查询
    PageBean<Article> articleList(Integer pageNum, Integer pageSize, Integer categoryId, String state);

    //新增
    void add(ArticleAddDTO articleAddDTO);

    //删除
    void delete(Integer id);

    //更新
    void update(Article article);

    //查询单篇文章
    Article getArticleById(Integer id);
}
